<layout name="layout" />
<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data">
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">属性名称：</td>
                <td>
                    <input  type="text" name="attr_name" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">属性类型：</td>
                <td>
                	唯一<input type="radio" name="attr_type" value="唯一" checked="checked" />
                    可选<input type="radio" name="attr_type" value="可选" />

                </td>
            </tr>
            <tr>
                <td class="label">属性可选值：</td>
                <td>
                    <textarea name="attr_option_values" id="" cols="30" rows="6"></textarea>

                    <!--<input  type="text" name="attr_option_values" value="" />-->
                </td>
            </tr>
            <tr>
                <td class="label">所属类型ID：</td>
                <td>
                    <!--<?php buildselect('type','type_id','id','type_name',I('get.type_id')) ?>-->
                    <select name="type_id">
                        <foreach name="tylist" item="tv">
                                <if> condition="$tv['id'] eq I('get.type_id')">
                                 <option selected ="selected" value="{$tv['id']}">{$tv['type_name']}</option>
                                </if>
                        </foreach>
                    </select>
                    <!--<input  type="text" name="type_id" value="" />-->
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>


<script>
</script>